let {update, insert, deletes, execute,select} = require('./database/utils');

//Koa 类
let Koa = require('koa');
//创建实例
let app = new Koa();

app.context.key = 'iceRain'; // 加密token的秘钥

/*在这里向app上挂载很多东西 属性/ 方法*/
app.context.db = {
  select,
  deletes,
  execute,
  update,// (表名,{},{})
  insert,//增加 ('表名',{})
};


module.exports = app;
